package com.aliyun.oss.pojo.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.lang.reflect.Type;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@TableName("shopping_cart")
public class ShoppingCart {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String image;
    private Integer userId;
    private Integer dishId;
    private Integer setmealId;
    private String dishFlavor;
    private Integer number;
    private BigDecimal amount;
    private LocalDateTime createTime;

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", image='" + image + '\'' +
                ", userId=" + userId +
                ", dishId=" + dishId +
                ", setmealId=" + setmealId +
                ", dishFlavor='" + dishFlavor + '\'' +
                ", number=" + number +
                ", amount=" + amount +
                ", createTime=" + createTime +
                '}';
    }

    public ShoppingCart(Integer id, String name, String image, Integer userId, Integer dishId, Integer setmealId, String dishFlavor, Integer number, BigDecimal amount, LocalDateTime createTime) {
        this.id = id;
        this.name = name;
        this.image = image;
        this.userId = userId;
        this.dishId = dishId;
        this.setmealId = setmealId;
        this.dishFlavor = dishFlavor;
        this.number = number;
        this.amount = amount;
        this.createTime = createTime;
    }

    public ShoppingCart(String name, String image, Integer userId, Integer setmealId, Integer number, BigDecimal amount, LocalDateTime createTime) {
        this.name = name;
        this.image = image;
        this.userId = userId;
        this.setmealId = setmealId;
        this.number = number;
        this.amount = amount;
        this.createTime = createTime;
    }

    public ShoppingCart(String name, String image, Integer userId, Integer dishId, String dishFlavor, Integer number, BigDecimal amount, LocalDateTime createTime) {
        this.name = name;
        this.image = image;
        this.userId = userId;
        this.dishId = dishId;
        this.dishFlavor = dishFlavor;
        this.number = number;
        this.amount = amount;
        this.createTime = createTime;
    }

    public ShoppingCart() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getDishId() {
        return dishId;
    }

    public void setDishId(Integer dishId) {
        this.dishId = dishId;
    }

    public Integer getSetmealId() {
        return setmealId;
    }

    public void setSetmealId(Integer setmealId) {
        this.setmealId = setmealId;
    }

    public String getDishFlavor() {
        return dishFlavor;
    }

    public void setDishFlavor(String dishFlavor) {
        this.dishFlavor = dishFlavor;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
